/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

export const enum YogaNodeType {
  DEFAULT = 0,
  TEXT = 1,
}

export function getYogaNodeTypeFromInt(value: number): YogaNodeType | never {
  switch (value) {
    case 0: return YogaNodeType.DEFAULT;
    case 1: return YogaNodeType.TEXT;
    default: throw new Error("Unknown enum value: " + value);
  }
}

